package com.wcfsy.wechat.wx.controller;

import javax.servlet.http.HttpServletRequest;

import com.wcfsy.wechat.wx.entity.WechatUserInfo;
import com.wcfsy.wechat.wx.util.ehcache.EHCacheUtil;

public class BaseController {
	
	/**
	 *  判断是否登录
	 * @param iphone
	 * @param request
	 * @return
	 */
	public boolean isLogin(int uid,HttpServletRequest request){
		
		return (WechatUserInfo)EHCacheUtil.get("session_"+uid) == null ? false : true;
	}
}
